﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Agents.Account
{
    public partial class ChangePasswordSuccess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Return to the homepage by role
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnReturnToHomePage_Click(object sender, EventArgs e)
        {
            if (User.IsInRole("Admin"))
            {
                Response.Redirect("~/Admin/AdminMenu.aspx");
            }
            else if (User.IsInRole("Agent"))
            {
                Response.Redirect("~/Agent/AgentMenu.aspx");
            }
        }
    }
}
